package nl.harmidi.midi;

import org.grlea.log.SimpleLogger;

public class MyMidiEventsPrinter extends MyMidiEventsLatencyListener {
	private static final SimpleLogger log = new SimpleLogger(MyMidiEventsPrinter.class);

	private MidiChannelFilter filter = new MidiChannelFilterNoDrums();

	@Override
	public void handleEvent(MyMidiEvent event) {
		if (filter.allow(event.getChannel()) && event.getType() == MyMidiEvent.TYPE.NOTE_ON) {
			log.debugObject("MyMidiEventsPrinter", event);
		}
	}

}
